﻿#include "showlogdialog.h"
#include "ui_showlogdialog.h"

ShowLogDialog::ShowLogDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ShowLogDialog)
{
    ui->setupUi(this);

    ui->textBrowser->setStyleSheet(QString::fromUtf8 ("background-color:black"));
}

ShowLogDialog::~ShowLogDialog()
{
    delete ui;
}

void ShowLogDialog::addLog(QString msg)
{
    if(msg.isEmpty())
        return;

    ui->textBrowser->append(msg);
}
